<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="author" content="@梦雨(QQ50361804)" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>投稿发布 - {:set('title')}</title>
    <meta name="keywords" content="{:set('keywords')}">
    <meta name="description" content="{:set('description')}">
    {include file="app/index/view/header.html"}
<style type="text/css" media="all">
.dw {
	position: absolute;
	bottom: 20px;
	right: 0px;
	text-align: center;
	color: #FF5722;
}
.label-selected {
	width: 100%;
	min-height:38px;
	margin:10px 0;
	border:1px solid #ccc;
	background-color: #fff;
	position: relative;
}
.cell {
	display: block;
	width:90px;
	height:28px;
	line-height: 28px;
	border:3px;
	background:#009688;
	color:#fff;
	text-align: center;
}
.label-selected li {
	display: inline-block;
	height: 27px;
	line-height: 27px;
	font-size: .8rem;
	padding: 0 1rem;
	border: 1px solid #e6e6e6;
	border-radius: 2px;
	cursor: pointer;
	margin: 4px 2px;
	color: #666;
}
#labelItem {
	margin-bottom: 10px;
	display: none;
}
.label-item {
	border: 1px solid #e6e6e6;
	padding: 10px;
	border-radius: 0 2px 2px 0;
	position: relative;
	overflow: hidden;
	background: #fff;
}
.label-item li {
	display: inline-block;
	height: 27px;
	line-height: 27px;
	font-size: .8rem;
	padding: 0 1rem;
	border: 1px solid #e6e6e6;
	border-radius: 2px;
	cursor: pointer;
	margin-bottom: 5px;
	margin-left: 2px;
	color: #666;
}
.label-item .selected {
	color:#ccc;
}
.upfujian {
    border-radius: 1.25rem;
    position: absolute;
    top: 8px;
    right: 6px;
    height: 40px;
    line-height: 30px;
    width: 100px;
}
</style> 
    <!-- 内容开始 -->
                <div class="col-12 col-md-12 col-lg-10">
                    <div class="box box-content" style="min-height: 625px;">
                        <div class="filterspace__controls">
                            <ul class="nav nav-pills" id="pills-tab" role="tablist">
                                <li class="nav-item">
                                    <a href="{:url('index/user/add',array('id'=>1))}" class="nav-link active">
                                       投稿发布
                                    </a>
                                </li>
                            </ul>
                        </div>  
                        
                        <div class="layui-tab layui-tab-brief">
                            <ul class="layui-tab-title">
                                <li {if get('model','1')=='1'}class="layui-this"{/if}>
                                    <a href="{:url('index/user/add')}">文章</a>
                                </li>   
                                {volist name=":fun_s('model',array('open'=>1),'id desc',10,false)" id="vo"}
                                <li {if input('model')==$vo.name}class="layui-this"{/if}>
                                <a href="{:url('index/user/add')}?model={$vo.name}">{$vo.title}</a>
                                </li>
                                 {/volist} 
                            </ul>
                            <div class="layui-tab-content"></div>
                        </div>      
                        <script>
                        layui.use('element', function(){
                          var element = layui.element;
                        });
                        </script>
                        <!--发布-->
                        {if set('fabu',8)}
                        <script>
                        layui.use('layer', function(){
                          var layer = layui.layer;
                          layer.open({
                              title: '温馨提示'
                              ,content: '{:set('fabu',8)}'
                              ,btn: ['了解']
                            });   
                        });
                        </script>
                        {/if}
                        <!--发布-->
                        {if get('model',1)==1}
                        <!--文章-->
                        <div class="sides_list_property large mt-10">
                            <div class="layui-card" style="width: 100%;">
                              <div class="layui-card-body" style="padding: 0px;">
                                <!--表单提交-->
                                {if get('id',0) == '0'}
                                <form class="layui-form form" url="{:url('index/api/add')}" t_url="javascript:parent.location.reload();">
                                {else /}
                                <form class="layui-form form" url="{:url('index/api/edits')}" t_url="javascript:parent.location.reload();">
                                <input type="hidden" name="id" value="{$c.id}">
                                {/if}
                                <input type="hidden" name="model" value="html">
                                 <div class="layui-row">
                                     <div class="layui-col-md9">
                                         <div class="layui-form-item">
                                            <label for="name">分类</label>
                                            <select name="tid" lay-verify="required" >
                                              <option value="">请选择</option>
                                              {foreach name=":fun_S('cate',array('tid'=>0),'px desc','1000',1)" item="v" key="k"}
                                             <option value="{$v.id}" {if $c.tid == $v.id}selected="选择"{/if}{if $v['tougao'] == 0}disabled=""{/if}>{$v.name}</option>
                                              {volist name=":fun_s('cate',array('tid'=>$v['id']),'px desc',100,1)" id="vo"}
                                              <option value="{$vo.id}" {if $c.tid == $vo.id}selected="选择"{/if} {if $vo['tougao'] == 0}disabled=""{/if}>——{$vo.name}</option>
                                              {/volist}  
                                              {/foreach} 
                                            </select>
                                         </div>
                                     </div>
                                     <div class="layui-col-md3">
                                         <div class="layui-form-item">
                                            <label for="name">付费{:set('jifen',2)}</label>
                                            <div class="form-group">
                                              <input type="text" name="jifen"  value="{:dingyi($c.jifen,'0')}"  autocomplete="off" placeholder="免费可空" class="form-control">
                                            </div>
                                         </div>
                                     </div>
                                     <div class="layui-col-md12">
                                         <div class="layui-form-item">
                                            <label for="name">标题</label>
                                            <div class="form-group">
                                              <input type="text" name="title" lay-verify="required" value="{$c.title}"  autocomplete="off" placeholder="请输入" class="form-control">
                                            </div>
                                         </div>
                                     </div>
                                  </div>
                                    <!--配置 -->
                                    {foreach name=":config_m(muban(),'add')" item="v" key="k"}
                                    {if $v.index}
                                    <div class="layui-col-md{$v.md}">
                                        <div class="layui-form-item">
                             
                                        <label for="name">{$v.title}</label>
                                            <div class="form-group">
                                                {if $v.type=='单选框'}
                                                {foreach name="$v.options" item="opv" key="opk"}
                                                <input type="radio" name="{$k}" value="{$opk}" title="{$opv}" {if $opk == dingyi($c[$k],$v.value)}checked=""{/if} class="form-control">
                                                {/foreach}
                                                {/if}
                                                {if $v.type=='选择框'}
                                                <select name="{$k}" lay-verify="{$v.required}">
                                                    <option value=""></option>
                                                    {foreach name="$v.options" item="opv" key="opk"}
                                                    <option value="{$opk}" {if $opk == dingyi($c[$k],$v.value)}selected="selected"{/if}>{$opv}</option>
                                                    {/foreach}
                                                </select>
                                                {/if}
                                                {if $v.type=='输入框'}
                                                <input type="text" name="{$k}" value="{:dingyi($c[$k],$v.value)}" placeholder="请输入内容" required  lay-verify="{$v.required}" autocomplete="off" class="form-control">
                                                {/if}
                                                {if $v.type=='密码框'}
                                                <input type="password" name="{$k}" value="{:dingyi($c[$k],$v.value)}" required  lay-verify="{$v.required}" autocomplete="off" class="form-control">
                                                {/if}
                                                {if $v.type=='文本域'}
                                                <textarea name="{$k}" rows="{$v.rows}" placeholder="请输入内容" class="form-control">{:dingyi(guoji($k),$v.value)}</textarea>
                                                {/if}
                                                {if $v.type=='附件'}
                                                <input type="text" name="{$k}" id="{$k}" value="{:dingyi($c[$k],$v.value)}" required  lay-verify="{$v.required}" placeholder="可直接填写地址" autocomplete="off" class="form-control">
                                                <button type="button" class="layui-btn layui-btn-normal s{$k} upfujian">上传</button>
                                                <script type="text/javascript">
                                                  layui.use(['form', 'upload', 'jquery']
                                                  ,function(){
                                                      var form = layui.form,
                                                      upload = layui.upload,
                                                      jq = layui.jquery;
                                                      upload.render({
                                                      elem: '.s{$k}',
                                                      url: "{:url("admin/up/up")}",
                                                      accept: 'file',
                                                      done: function(res) {
                                                          if (res.code == '1') {
                                                            jq('#{$k}').val(res.path);
                                                            return layer.msg(res.msg);
                                                          } else {
                                                            return layer.msg(res.msg);
                                                          }
                                                      }
                                                    });
                                                  });
                                                  </script>
                                                {/if}
                                                <!--1.01新增-->
                                                {if $v.type=='颜色'}
                                                <input type="color" name="{$k}" value="{:dingyi($c[$k],$v.value)}" placeholder="请选择颜色" class="layui-input" id="form-input{$k}" style="background-color: #F7F9FA; border: 2px solid #F7F9FA; border-radius: 1.25rem;height: 58px;">
                                                {/if}
                                                {if $v.type=='时间'}
                                                <input type="date" name="{$k}" value="{:dingyi($c[$k],$v.value)}" placeholder="请选择时间" class="form-control" id="form-input{$k}">
                                                {/if}
                                                {if $v.type=='多选'}
                                                <div class="label-selected label-{$k}">
                                                    <a href="javascript:;" class="layui-btn layui-btn-sm show-labelitem show-{$k}" style="float: right; margin: 4px; display: none; line-height: 30px;">展开</a>
                                                    <a href="javascript:;" class="layui-btn layui-btn-sm hide-labelitem hide-{$k}" style="float: right; margin: 4px; line-height: 30px;">收起</a>
                                                    <input type="hidden" value="{$c[$k]}" name="{$k}">
                                                    {if $c[$k]}
                                                    {volist name=":expz($c[$k],',')" id="vo"} 
                                                    <li data="{$vo}">x {$vo}</li>
                                                    {/volist} 
                                                    {/if}
                                                </div>
                                                <div class="layui-col-md12 id-{$k}" id="labelItem" style="display: block;">
                                                    <div class="label-item label-item-{$k}">
                                                        {foreach name="$v.options" item="opv" key="opk"}
                                                        <li data="{$opv}" {if socha($c[$k],$opv)==1}class="selected"{/if}><span>{$opv}</span></li>
                                                        {/foreach}
                                                    </div>
                                                </div>
                                                <script type="text/javascript">	
                                                $(function(){
                                                  $(".show-{$k}").on("click",function(){
                                                    $(this).hide();
                                                    $(".hide-{$k}").show();
                                                    $(".id-{$k}").show();
                                                  });
                                                  $(".hide-labelitem").on("click",function(){
                                                    $(this).hide();
                                                    $(".show-labelitem").show();
                                                    $(".id-{$k}").hide();
                                                  });
                                                  $(".label-item-{$k}").on("click","li",function(){
                                                    var id = $(this).attr("data");
                                                    var text = $(this).children("span").html();
                                                    var labelHTML = "<li data='"+id+"''>x "+text+"</li>";
                                                    if($(this).hasClass("selected")){
                                                      return false;
                                                    }
                                                    $(".label-{$k}").append(labelHTML);
                                                    val = '';
                                                    for(var i = 0; i < $(".label-{$k}").children("li").length; i++){
                                                      val += $(".label-{$k}").children("li").eq(i).attr("data")+',';
                                                    }
                                                    $("input[name='{$k}']").val(val.substring(0,val.length-1));
                                                    $(this).addClass("selected");
                                                  });
                                                  var val = "";
                                                  $(".label-{$k}").on("click","li",function(){
                                                    var id = $(this).attr("data");
                                                    val = '';
                                                    $(this).remove();
                                                    for(var i = 0; i < $(".label-{$k}").children("li").length; i++){
                                                      val += $(".label-{$k}").children("li").eq(i).attr("data")+',';
                                                    }
                                                    $("input[name='{$k}']").val(val.substring(0,val.length-1));
                                                    $(".label-item-{$k}").find("li[data='"+id+"']").removeClass("selected");
                                                  });
                                                })
                                                </script>
                                                {/if}
                                            </div>
                                        </div>
                                    </div>
                                    {/if}
                                    {/foreach}
                                    <!--配置end-->
                                  
                                  <iframe style="display:none;" id="iframe" src="{:url('index/api/at',array('m'=>'html','id'=>$c['id']))}"></iframe>
                                  <div class="layui-form-item">
                                    <label for="L_title" for="name">内容</label>
                                      <div class="form-group">
                                        {include file="app/admin/view/editor.html"} 
                                        <div style="border : 1px solid #cccccc;border-top: #ffffff;padding: 5px;">
                                          <button type="button" id="fujianfgf" class="layui-btn layui-btn-sm layui-btn-danger"><i class="layui-icon">&#xe674;</i>附件分隔符</button>
                                          <button type="button" id="scfujian" class="layui-btn layui-btn-sm layui-btn-normal" style="margin-right: 10px;"><i class="layui-icon">&#xe62f;</i>上传附件</button>
                                          <button type="button" id="tianjialianjie" class="layui-btn layui-btn-sm layui-btn-normal"><i class="layui-icon">&#xe64c;</i>添加链接</button>
                                          {if $c.id}
                                          <button type="button" id="chongzhi" class="layui-btn layui-btn-sm layui-btn-normal" url="{:url('index/api/cz',array('m'=>'html','id'=>$c.id))}"><i class="layui-icon">&#xe669;</i>重置内容</button>
                                          {/if}
                                        </div>
                                     </div>
                                  </div>
                                  <div class="layui-form-item">
                                    <div class="form-group">
                                      <div class="layui-footer" style="left: 0;">
                                        <button class="layui-btn" lay-submit="" lay-filter="cms">立即提交</button>
                                      </div>
                                    </div>
                                  </div>
                                </form>
                              </div>
                            </div>
                          </div>
                          {else/}
                          <!--模型-->
                          <div class="sides_list_property large mt-10">
                            <div class="layui-card" style="width: 100%;">
                              <div class="layui-card-body" style="padding: 0px;">
                                <!--表单提交-->
                                {if get('id',0) == '0'}
                                <form class="layui-form form" url="{:url('index/api/add_model')}" t_url="javascript:parent.location.reload();">
                                {else /}
                                <form class="layui-form form" url="{:url('index/api/edits_model')}" t_url="javascript:parent.location.reload();">
                                <input type="hidden" name="id" value="{$c.id}">
                                {/if}
                                <input type="hidden" name="model" value="{:get('model')}">
                                 <div class="layui-row">
                                     <div class="layui-col-md4">
                                         <div class="layui-form-item">
                                            <label for="name">分类</label>
                                            <select name="tid" lay-verify="required" >
                                              <option value="">请选择</option>
                                              {foreach name=":fun_S('cate_m',array('tid'=>0,'m'=>input('model')),'px desc','1000',1)" item="v" key="k"}
                                             <option value="{$v.id}" {if $c.tid == $v.id}selected="选择"{/if}{if $v['tougao'] == 0}disabled=""{/if}>{$v.name}</option>
                                              {volist name=":fun_s('cate_m',array('tid'=>$v['id']),'px desc',100,1)" id="vo"}
                                              <option value="{$vo.id}" {if $c.tid == $vo.id}selected="选择"{/if} {if $vo['tougao'] == 0}disabled=""{/if}>——{$vo.name}</option>
                                              {/volist}  
                                              {/foreach} 
                                            </select>
                                         </div>
                                     </div>
                                     <div class="layui-col-md8">
                                         <div class="layui-form-item">
                                            <label for="name">标题</label>
                                            <div class="form-group">
                                              <input type="text" name="title" lay-verify="required" value="{$c.title}"  autocomplete="off" placeholder="请输入" class="form-control">
                                            </div>
                                         </div>
                                     </div>
                                  </div>
                                    <!--配置 -->
                                    {foreach name=":json_model(fun_model(input('model'), 'config'))" item="v" key="k"}
                                    {if json_model_v($v,'index')}
                                    <div class="layui-col-md{:json_model_v($v,'md')}">
                                        <div class="layui-form-item">
                                        <label for="name">{:json_model_v($v,'title')}</label>
                                            <div class="form-group">
                                                {if json_model_v($v,'type')=='单选框'}
                                                {volist name=":sku(json_model_v($v,'options'),PHP_EOL,',')" id="vo"}
                                                <input type="radio" name="{:json_model_v($v,'zhiduan')}" value="{$vo.id}" title="{$vo.name}" {if $vo.name} == dingyi($c[json_model_v($v,'zhiduan')],json_model_v($v,'value'))}checked=""{/if} class="form-control">
                                                {/volist}
                                                {/if}
                                                {if json_model_v($v,'type')=='选择框'}
                                                <select name="{:json_model_v($v,'zhiduan')}" lay-verify="{:json_model_v($v,'required')}">
                                                    <option value=""></option>
                                                    {volist name=":sku(json_model_v($v,'options'),PHP_EOL,',')" id="vo"}
                                                    <option value="{$vo.id}" {if $vo.name} == dingyi($c[json_model_v($v,'zhiduan')],json_model_v($v,'value'))}selected="selected"{/if}>{$vo.name}</option>
                                                    {/volist}
                                                </select>
                                                {/if}
                                                {if json_model_v($v,'type')=='输入框'}
                                                <input type="text" name="{:json_model_v($v,'zhiduan')}" value="{:dingyi($c[json_model_v($v,'zhiduan')],json_model_v($v,'value'))}" placeholder="请输入内容" required  lay-verify="{:json_model_v($v,'required')}" autocomplete="off" class="form-control">
                                                {/if}
                                                {if json_model_v($v,'type')=='密码框'}
                                                <input type="password" name="{:json_model_v($v,'zhiduan')}" value="{:dingyi($c[json_model_v($v,'zhiduan')],json_model_v($v,'value'))}" required  lay-verify="{:json_model_v($v,'required')}" autocomplete="off" class="form-control">
                                                {/if}
                                                {if json_model_v($v,'type')=='文本域'}
                                                <textarea name="{:json_model_v($v,'zhiduan')}" rows="{:dingyi(json_model_v($v,'rows'),6)}" placeholder="请输入内容" class="form-control layui-textarea">{:dingyi($c[json_model_v($v,'zhiduan')],json_model_v($v,'value'))}</textarea>
                                                {/if}
                                                {if json_model_v($v,'type')=='附件'}
                                                <input type="text" name="{:json_model_v($v,'zhiduan')}" id="{$k}" value="{:dingyi($c[json_model_v($v,'zhiduan')],json_model_v($v,'value'))}" required  lay-verify="{:json_model_v($v,'required')}" placeholder="可直接填写地址" autocomplete="off" class="form-control">
                                                <button type="button" class="layui-btn layui-btn-normal s{$k} upfujian">上传</button>
                                                <script type="text/javascript">
                                                  layui.use(['form', 'upload', 'jquery']
                                                  ,function(){
                                                      var form = layui.form,
                                                      upload = layui.upload,
                                                      jq = layui.jquery;
                                                      upload.render({
                                                      elem: '.s{$k}',
                                                      url: "{:url("admin/up/up")}",
                                                      accept: 'file',
                                                      done: function(res) {
                                                          if (res.code == '1') {
                                                            jq('#{$k}').val(res.path);
                                                            return layer.msg(res.msg);
                                                          } else {
                                                            return layer.msg(res.msg);
                                                          }
                                                      }
                                                    });
                                                  });
                                                  </script>
                                                {/if}
                                                <!--1.01新增-->
                                                {if json_model_v($v,'type')=='颜色'}
                                                <input type="color" name="{:json_model_v($v,'zhiduan')}" value="{:dingyi($c[json_model_v($v,'zhiduan')],json_model_v($v,'value'))}" placeholder="请选择颜色" class="layui-input" id="form-input{$k}" style="background-color: #F7F9FA; border: 2px solid #F7F9FA; border-radius: 1.25rem;height: 58px;">
                                                {/if}
                                                {if json_model_v($v,'type')=='时间'}
                                                <input type="date" name="{:json_model_v($v,'zhiduan')}" value="{:dingyi($c[json_model_v($v,'zhiduan')],json_model_v($v,'value'))}" placeholder="请选择时间" class="form-control" id="form-input{$k}">
                                                {/if}
                                                {if json_model_v($v,'type')=='多选'}
                                                <div class="label-selected label-{:json_model_v($v,'zhiduan')}">
                                                    <a href="javascript:;" class="layui-btn layui-btn-sm show-labelitem show-{:json_model_v($v,'zhiduan')}" style="float: right; margin: 4px; display: none; line-height: 30px;">展开</a>
                                                    <a href="javascript:;" class="layui-btn layui-btn-sm hide-labelitem hide-{:json_model_v($v,'zhiduan')}" style="float: right; margin: 4px; line-height: 30px;">收起</a>
                                                    <input type="hidden" value="{:dingyi($c[json_model_v($v,'zhiduan')],json_model_v($v,'value'))}" name="{:json_model_v($v,'zhiduan')}" nameid="{:json_model_v($v,'zhiduan')}">
                                                    {if $c[json_model_v($v,'zhiduan')]}
                                                    {volist name=":expz($c[json_model_v($v,'zhiduan')],',')" id="vo"} 
                                                    <li data="{$vo}">x {$vo}</li>
                                                    {/volist} 
                                                    {/if}
                                                </div>
                                                <div class="layui-col-md12 id-{:json_model_v($v,'zhiduan')}" id="labelItem" style="display: block;">
                                                    <div class="label-item label-item-{:json_model_v($v,'zhiduan')}">
                                                        {volist name=":sku(json_model_v($v,'options'),PHP_EOL,',')" id="vo"}
                                                        <li data="{$vo.name}" {if socha($c[json_model_v($v,'zhiduan')],$vo.name)==1}class="selected"{/if}><span>{$vo.name}</span></li>
                                                        {/volist}
                                                    </div>
                                                </div>
                                                <script type="text/javascript">	
                                                $(function(){
                                                  $(".show-{:json_model_v($v,'zhiduan')}").on("click",function(){
                                                    $(this).hide();
                                                    $(".hide-{:json_model_v($v,'zhiduan')}").show();
                                                    $(".id-{:json_model_v($v,'zhiduan')}").show();
                                                  });
                                                  $(".hide-labelitem").on("click",function(){
                                                    $(this).hide();
                                                    $(".show-labelitem").show();
                                                    $(".id-{:json_model_v($v,'zhiduan')}").hide();
                                                  });
                                                  $(".label-item-{:json_model_v($v,'zhiduan')}").on("click","li",function(){
                                                    var id = $(this).attr("data");
                                                    var text = $(this).children("span").html();
                                                    var labelHTML = "<li data='"+id+"''>x "+text+"</li>";
                                                    if($(this).hasClass("selected")){
                                                      return false;
                                                    }
                                                    $(".label-{:json_model_v($v,'zhiduan')}").append(labelHTML);
                                                    val = '';
                                                    for(var i = 0; i < $(".label-{:json_model_v($v,'zhiduan')}").children("li").length; i++){
                                                      val += $(".label-{:json_model_v($v,'zhiduan')}").children("li").eq(i).attr("data")+',';
                                                    }
                                                    $("input[nameid='{:json_model_v($v,'zhiduan')}']").val(val.substring(0,val.length-1));
                                                    $(this).addClass("selected");
                                                  });
                                                  var val = "";
                                                  $(".label-{:json_model_v($v,'zhiduan')}").on("click","li",function(){
                                                    var id = $(this).attr("data");
                                                    val = '';
                                                    $(this).remove();
                                                    for(var i = 0; i < $(".label-{:json_model_v($v,'zhiduan')}").children("li").length; i++){
                                                      val += $(".label-{:json_model_v($v,'zhiduan')}").children("li").eq(i).attr("data")+',';
                                                    }
                                                    $("input[nameid='{:json_model_v($v,'zhiduan')}']").val(val.substring(0,val.length-1));
                                                    $(".label-item-{:json_model_v($v,'zhiduan')}").find("li[data='"+id+"']").removeClass("selected");
                                                  });
                                                })
                                                </script>
                                                {/if}
                                            </div>
                                        </div>
                                    </div>
                                    {/if}
                                    {/foreach}
                                    <!--配置end-->
                                  <iframe style="display:none;" id="iframe" src="{:url('index/api/at',array('m'=>get('model'),'id'=>$c['id']))}"></iframe>
                                  <div class="layui-form-item">
                                    <label for="L_title" for="name">内容</label>
                                      <div class="form-group">
                                        {include file="app/admin/view/editor.html"} 
                                        <div style="border : 1px solid #cccccc;border-top: #ffffff;padding: 5px;">
                                          <button type="button" id="fujianfgf" class="layui-btn layui-btn-sm layui-btn-danger"><i class="layui-icon">&#xe674;</i>附件分隔符</button>
                                          <button type="button" id="scfujian" class="layui-btn layui-btn-sm layui-btn-normal" style="margin-right: 10px;"><i class="layui-icon">&#xe62f;</i>上传附件</button>
                                          <button type="button" id="tianjialianjie" class="layui-btn layui-btn-sm layui-btn-normal"><i class="layui-icon">&#xe64c;</i>添加链接</button>
                                          {if $c.id}
                                          <button type="button" id="chongzhi" class="layui-btn layui-btn-sm layui-btn-normal" url="{:url('index/api/cz',array('m'=>'html','id'=>$c.id))}"><i class="layui-icon">&#xe669;</i>重置内容</button>
                                          {/if}
                                        </div>
                                     </div>
                                  </div>
                                  <div class="layui-form-item">
                                    <div class="form-group">
                                      <div class="layui-footer" style="left: 0;">
                                        <button class="layui-btn" lay-submit="" lay-filter="cms">立即提交</button>
                                      </div>
                                    </div>
                                  </div>
                                </form>
                              </div>
                            </div>
                          </div>
                          {/if}
                        <div class="clearfix"></div>
                    </div> 
                </div>
            </div>
        </div>
    </main>
    <div class="h66"></div>
    {:hook('useradd')}
    {include file="app/index/view/footer.html"}